004 defining tags

嘿伙计们欢迎回来。
Hey guys welcome back.

现在我们将继续并开始设置一些标签。
Now we're going to go ahead and start setting up some tags.

这就是我们将从 PLCC 和此处使用的所有内存寄存器。
So this is all of our memory registers that we're going to be using from our PLCC and right up here.

我们有一个小东西,看起来像几个黄色标签,一个在其他标签之上,这将是我们的地址标签库管理器。
We've got this little thing that looks like a few yellow tags one on top of the others and that's going to be our address tag library manager.

我们也可以来到图书馆并单击标签。
We could also come up here to library and click on tag.

因此,其中任何一个都会让您进入标签库。
So either one of those is going to get you into the tag library.

在这里您可以看到我们已经获得了所有系统标签。
And here you can see already we've got all of the system tags.

这些是 HDMI 的,并且有一个很好的列表。
These are the ones for the HDMI and there's a pretty good list of these things.

但我们现在感兴趣的是用户定义的标签,因为我们将设置这些标签来与 APRC 进行通信。
But what we're interested in right now is going to be our user defined tags because these are the ones that we're going to set up to communicate with our APRC.

我将继续点击“新建”,就这样。
I'm going to go ahead and click on new and just like that.

我们弹出了这个小界面,这就是我们要构建标签的地方,因此我们不会尝试与本地 Chimay 进行通信,所以我要做的第一件事就是选择我们的 PLCC 一旦我们配置我们的通信,这是列表中除 HDMI 之外的唯一东西,因此它使我们的标签名称变得非常容易。
We've got this small little interface that pops up and this is where we're going to build our tags so we're not trying to communicate with the local Chimay So the first thing I want to do is select our PLCC And once we configured our communications that's the only thing other than the HDMI in the list so it makes things very easy for us for a tag name.

让我们将其称为简单的名称,例如启动按钮或启动 P.B.
Let's go ahead and call this something simple like start push button or start P.B.

然后这将是一个位地址。
and then that's going to be a bit address.

所以我不需要单词,因为我没有设置整数或浮动设备类型。
So I don't need word because I'm not setting an integer or float the device type.

这实际上是数据文件。
That's actually really the data file.

在我们的例子中,我们将使用 B-3 数据文件,然后我们必须输入一个地址。
And in our case we're going to be using our B-3 data file and then we have to put in an address.

这与我的高级阶段和高级阶段不同,我们可以输入三个冒号三个斜杠三个或类似的东西,但不是在这里。
And this is not the same as advanced stage and advanced stage in my we could type three colon three slash three or something like that but not here.

你看,他们有自己的格式,即三个大 D 和两个小 D,这三个大 D 代表我们的单词。
You see that they've got their own format which is three big D's and two little D's and those three big D's represent our word.

那两个小D代表我们的部分。
And those two little D's represent our bit.

那么我们的地址在哪里呢?
So where is our address.

好吧,让我们在这里休息一下,让我们的 IRS 链接运行起来。
Well let's take a break here and get our IRS links running.

让我们运行我们的模拟,并启动我们的 APRC 程序,这样我们至少可以为接下来的几场讲座做好准备,并且我们现在需要的地址也将摆在我们面前。
Let's get our emulate running and let's pull up our APRC program as well and that way we can at least be ready for our next few lectures to go online and we will also have our addresses in front of us that we are going to need right now.

所以我要进入我的审核选项卡,这里是我的系统启动按钮,它是 3 3 3。
So I'm going to go into my review tab and right here is my system start button that's it be 3 3 3.

那么我该如何在 Easy Builder 中进行设置呢?
So how do I set that up in easy builder.

我已经知道我位于 B-3,因为我在此处设置了设备类型。
I already know that I'm in B-3 because I set my device type here.

我的话是三。
My word is three.

所以这将是 0 0 3 因为我们需要三个数字来描述这个词。
So that's going to be 0 0 3 because we need three digits to describe the word.

然后我的位将是 0 3 因为我们需要两个数字来描述我们的位。
And then my bit is going to be 0 3 because we need two digits to describe our bit.

这就是我与 B-3 0 3 进行通信的方法,我将 B-3 放入设备类型中,然后地址为 0 0 3 0 3。
That's what I do to communicate with B-3 0 3 is I've put a B-3 in device type and then the address is 0 0 3 0 3.

完美的。
Perfect.

因此,如果我与 B-3 15 15:2 之类的东西进行通信,那么它将是 0 1 5 0 或 2 简单。
So if I was communicating with something like B-3 15 15:2 it would be 0 1 5 0 or 2 simple.

那么让我们继续并点击“确定”。
So let's go ahead and hit OK.

就像这样我已经设置了我的第一个标签。
And just like that I've set up my first tag.

现在我准备创建一个开始按钮。
So now I'm ready to create a start button.

就像我们会使用相同的格式来创建其他任何东西。
And just like that we would use the same format to create anything else.

因此,假设我们还想查看水箱液位。
So let's pretend we also want to look at our tank level.

让我们继续尝试新事物。
Let's go ahead and hit new.

我们将其简单地称为储罐液位,这次也将出现在我们的 PLCC 上。
And this is going to be we'll just call it tank level simple and that's also going to be on our PLCC this time.

我们将要查看一个单词,并且将使用浮点数,因为这不是 f 数据文件,而且我不记得地址了,所以让我们进来看看吧我们可以看到我们的级别是 f 8 2。
We're going to be looking at a word and we're going to be using a float because this is not f data file and I don't remember the address off the top of my head so let's come in here and there we go we can see that our level is on f 8 2.

所以我要回到简单的构建器,现在我们只有一个单词,因为我们正在单词级别上工作。
So I'm going to pop back in to easy builder and now all we have is a word because we're working it word level.

但我们仍然需要三位数。
But we still need three digits.

所以那就是 0 0 2。
So that's just going to be 0 0 2.

因此,这对我们来说是一个向人民发表讲话的新惯例,但我认为这并不是我们很难理解的事情。
So it's a new convention for us for addressing our people see but I don't think that's anything we're hard to catch on.

现在我们有了一个启动按钮。
Now we've got a start pushbutton.

我们已经有了一个水箱液位并且我们已经创建了一些。
We've got a tank level and we've created a bit.

我们已经创建了一个单词,如果我们可以创建一个浮点数,我们就可以轻松创建一个整数。
We've created one word and if we can create a float we can just as easily create an integer.

因此,让我们给自己一个新标签,假设我们希望它是 SLV,一个下划线显示一种状态,或者只是将其称为 H-2A,这也将出现在我们的 PLCC 中,这也将是一个单词。
So let's give ourselves one new tag and let's pretend that we want this to be SLV one underscore show a status or just call it H-2A that's also going to be in our PLCC that's also going to be a word.

这次它来自我们的 7 数据文件。
This time it's coming from our in 7 data file.

让我们检查一下 r s v 1 在 7 0 中是否打开。
And let's check and see r s v 1 is on in the 7 0.

所以这真的很容易。
So that's real easy.

我们只需输入 0 0 0。
We're just going to type 0 0 0.

好的。
Okay.

现在我们已经有了要为此应用程序创建的每种基本类型的标签之一。
And now we've got one of each of our basic kind of tags that we're going to be creating for this application.

我们已经得到了我们的部分。
We've got our bits.

我们有两种不同的词。
We've got two different kinds of words.

其中一个是浮点数,另一个是整数。
One of them being a float and another one being an integer.

这就是本次讲座的内容,我们将在下一次讲座中返回并开始创建一些新屏幕,然后创建一些导航以在它们之间来回切换。
So that's really it for this lecture we will come back in the next one and start working on creating some new screens and then creating some navigation to get back and forth between them.

那我到时候见。
So I'll see you then.

干杯。
Cheers.